package net.ixion.portal.utils;

import java.security.MessageDigest;

import org.apache.log4j.Logger;

public class StringUtils {
	private static final Logger logger = Logger.getRootLogger();

	public static String MD5(String input) {
		String result = "";
		try {
			result = Base64Encoder.encode(MessageDigest.getInstance("md5")
					.digest(input.getBytes()));
		} catch (Exception e) {
			logger.fatal(e);
		}
		return result;
	}
}
